<?php if(isset($this->meta['onClickParams'])&&is_array($this->meta['onClickParams'])): ?>
    <?php $url = sprintf("'/%s'", str_replace('.','/',$this->meta['onClick'])); ?>
    <?php foreach($this->meta['onClickParams'] as $param): ?>
        <?php $url .= sprintf(" + '/%s/' + item.%s", $param, $param); ?>
    <?php endforeach; ?>
    <?php printf("%s;", $url); ?>
<?php else: ?>
    <?php printf("'/%s/id/' + item.%s;", str_replace('.','/',$this->meta['onClick']), $this->identifier) ?>
<?php endif; ?>